// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-7

#ifndef __NET_SEND_H_COMMON_SERVLIB__
#define __NET_SEND_H_COMMON_SERVLIB__

#pragma once

#include "net_config.h"
#include "net_sockdata.h"
#include "net_overlapped.h"
#include "net_transmit.h"

namespace JoyServer
{

// WSASend and WSASendTo use this class to post operations.
// m_sendData contains the memory buffer.
class CJoySendOverlapped : public CJoyOverlapped
{
public:
    CJoyTransmitData*   m_sendData;
public:
    CJoySendOverlapped(CJoySockData* sockData, CJoyTransmitData* sendData);
    virtual ~CJoySendOverlapped();
};

} // namespace JoyServer

#endif  // __NET_SEND_H_COMMON_SERVLIB__